package com.esri.android.map.popup;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.LinearLayout;

@Deprecated
/* loaded from: classes.dex */
public class ArcGISLayout extends LinearLayout implements PopupLayout {
    private FrameLayout a;
    private FrameLayout b;
    private FrameLayout c;
    private FrameLayout d;
    private ArcGISTitleView e;
    private ArcGISAttributeView f;
    private ArcGISMediaView g;
    private ArcGISAttachmentsView h;
    private ArcGISPopupStyle i;

    @Override // com.esri.android.map.popup.PopupLayout
    public ViewGroup getLayout() {
        return null;
    }

    public ArcGISLayout(Context context) {
        super(context);
        this.i = new ArcGISPopupStyle();
        setOrientation(1);
        setPadding(10, 10, 10, 10);
        FrameLayout frameLayout = new FrameLayout(context);
        this.a = frameLayout;
        addView(frameLayout);
        FrameLayout frameLayout2 = new FrameLayout(context);
        this.b = frameLayout2;
        addView(frameLayout2);
        FrameLayout frameLayout3 = new FrameLayout(context);
        this.c = frameLayout3;
        addView(frameLayout3);
        FrameLayout frameLayout4 = new FrameLayout(context);
        this.d = frameLayout4;
        addView(frameLayout4);
    }

    void a(Popup popup) {
        setTitleView(new ArcGISTitleView(getContext(), popup, null));
        setAttributesView(new ArcGISAttributeView(getContext(), popup));
        setMediaView(new ArcGISMediaView(getContext(), popup));
        setAttachmentsView(new ArcGISAttachmentsView(getContext(), popup));
    }

    @Override // com.esri.android.map.popup.PopupLayout
    public ArcGISTitleView getTitleView() {
        return this.e;
    }

    @Override // com.esri.android.map.popup.PopupLayout
    public ArcGISAttributeView getAttributesView() {
        return this.f;
    }

    @Override // com.esri.android.map.popup.PopupLayout
    public ArcGISMediaView getMediaView() {
        return this.g;
    }

    @Override // com.esri.android.map.popup.PopupLayout
    public ArcGISAttachmentsView getAttachmentsView() {
        return this.h;
    }

    @Override // com.esri.android.map.popup.PopupLayout
    public void setTitleView(View view) {
        ArcGISTitleView arcGISTitleView = (ArcGISTitleView) view;
        this.e = arcGISTitleView;
        this.a.addView(arcGISTitleView);
    }

    @Override // com.esri.android.map.popup.PopupLayout
    public void setAttributesView(View view) {
        ArcGISAttributeView arcGISAttributeView = (ArcGISAttributeView) view;
        this.f = arcGISAttributeView;
        this.b.addView(arcGISAttributeView);
    }

    @Override // com.esri.android.map.popup.PopupLayout
    public void setMediaView(View view) {
        ArcGISMediaView arcGISMediaView = (ArcGISMediaView) view;
        this.g = arcGISMediaView;
        this.c.addView(arcGISMediaView);
    }

    @Override // com.esri.android.map.popup.PopupLayout
    public void setAttachmentsView(View view) {
        ArcGISAttachmentsView arcGISAttachmentsView = (ArcGISAttachmentsView) view;
        this.h = arcGISAttachmentsView;
        this.d.addView(arcGISAttachmentsView);
    }

    @Override // com.esri.android.map.popup.PopupLayout
    public ArcGISPopupStyle getStyle() {
        return this.i;
    }
}
